<?php

/**
 * Subclass for representing a row from the 'account_owner' table.
 *
 * 
 *
 * @package lib.model
 */ 
class AccountOwner extends BaseAccountOwner
{
  function AccountOwner(){
    $this->setContactIden('');
    $this->setTaxCodes('');
    $this->setTinNumber('');
    $this->setSssNumber('');
    $this->setHealthCardNumber('');
    $this->setHomeDevelopmentFundNumber('');
    $this->setVatExcemptType('NONE');
  }
  
  function hasAccounts(){
    $customer_count = $this->countAccountCustomers();
    $supplier_count = $this->countAccountSuppliers();
    
    if(($customer_count+$supplier_count)>0)
      return true;
    else
      return false;
  }
  
  function __toString(){
    return $this->getContact()->getListName();
  }
  
}
